/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mancala;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author joshuasiebenaler
 */
public class HardAICCTTest8 {
    
    public HardAICCTTest8() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }


    /**
     * Test of ComputeCaptureTotals method, of class HardAI.
     */
    @Test
    public void testComputeCaptureTotals() {
        System.out.println("ComputeCaptureTotals");
        int[] legalcapture = new int[10];
        int[] tempvalue = new int [16];
        
        legalcapture[1] = 0;
        legalcapture[2] = 0;
        legalcapture[3] = 0;
        legalcapture[4] = 0;
        legalcapture[5] = 0;
        legalcapture[6] = 0;
        legalcapture[7] = 0;
        legalcapture[8] = 0;
        legalcapture[9] = 0;
        
        
        tempvalue[1] = 0;
        tempvalue[2] = 0;
        tempvalue[3] = 0;
        tempvalue[4] = 0;
        tempvalue[5] = 0;
        tempvalue[6] = 0;
        tempvalue[7] = 0;
        tempvalue[8] = 0;
        tempvalue[9] = 0;
        
        
        int[] expResult = new int [8];
        
        expResult[1] = 0;
        expResult[2] = 0;
        expResult[3] = 0;
        expResult[4] = 0;
        expResult[5] = 0;
        expResult[6] = 0;
        expResult[7] = 0;
       
        
        
        int[] result = HardAI.ComputeCaptureTotals(legalcapture, tempvalue);
        assertArrayEquals(expResult, result);
    }

    
    
}
